-- GENERATED SPELL FOR [Scarlet Cleric] --


function spell0_9449(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_9449', 3500, 1)
end

function spell1_9449(pUnit, Event) --@Mind Blast,n/a--
pUnit:FullCastSpellOnTarget(15587,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9449', 1500, 1)
end

function Sorts_9449(pUnit, Event)
local choix_sorts_9449 = math.random(0, 1)
if choix_sorts_9449 == 0 then
pUnit:RegisterEvent('spell0_9449', 1, 1)
end
if choix_sorts_9449 == 1 then
pUnit:RegisterEvent('spell1_9449', 1, 1)
end
end

function mob9449_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9449', math.random(1500, 3000), 1)
end

function mob9449_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9449_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9449_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9449, 1, 'mob9449_Action')
RegisterUnitEvent(9449, 2, 'mob9449_Leave')
RegisterUnitEvent(9449, 3, 'mob9449_Kill')
RegisterUnitEvent(9449, 4, 'mob9449_Die')
